
class cls(object):
    name = 'zhangsan'
    def __init__(self,dic):
        self.age = 123;
        self.__dict__.update(dic)


dic = {'Id':'123','age1':123}
c1 = cls(dic)
print(c1.__dict__)
#输出：{'age': 123, 'Id': '123', 'age1': 123}
